package com.baitengsoft.patentapimonitor.api.model;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 *
 * 
 *
 */
public class SearchPage implements Serializable {

	/** 页码 */
	@ApiModelProperty(position = 1, required = false, value = "页码")
	private int page;

	/** 页展示数据量 */
	@ApiModelProperty(position = 2, required = false, value = "数据量")
	private int pageSize;

	/** 描述 */
	@ApiModelProperty(hidden = true)
	private int totle;



	public int getPage() {
		if (this.page <= 0)
			return 1;
		return this.page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPageSize() {
		if (this.pageSize <= 0)
			return 10;
		return this.pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotle() {
		return this.totle;
	}

	public void setTotle(int totle) {
		this.totle = totle;
	}

	
}
